package chixing.day11.prototype;

public abstract   class AbstractOrder implements Order {
    private int orderId;
    private String orderOwneName;
    private int productNumber;
    public AbstractOrder(){}
    public AbstractOrder(int orderId, String orderOwneName, int orderNumber) {
        this.orderId = orderId;
        this.orderOwneName = orderOwneName;
        this.productNumber = orderNumber;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getOrderOwneName() {
        return orderOwneName;
    }

    public void setOrderOwneName(String orderOwneName) {
        this.orderOwneName = orderOwneName;
    }

    @Override
    public abstract Order myclone();

    public int getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(int productNumber) {
        this.productNumber = productNumber;
    }

    @Override
    public String toString() {
        return "AbstractOrder{" +
                "orderId=" + orderId +
                ", orderOwneName='" + orderOwneName + '\'' +
                ", orderNumber=" + productNumber +
                '}';
    }
}
